@import './mixins.less';

@table-filter-prefix: ~'@{prefix}';

.@{table-filter-prefix} {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
}
.@{table-filter-prefix}Form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.@{table-filter-prefix}ItemsBox {
  display: flex;
  width: 100%;
}
.@{table-filter-prefix}Item {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 20%;
  height: 46px;
  padding: 0 8px;

  &.col6 {
    width: 25%;
  }

  &.col8 {
    width: 33%;
  }

  &.col12 {
    width: 50%;
  }

  &.col24 {
    width: 100%;
  }
  .@{table-filter-prefix}Title {
    min-width: 68px;
    padding-top: 2px;
    padding-right: 12px;
    color: #565a66;
    font-weight: 400;
    font-size: 14px;
    text-align: right;
  }
  .@{table-filter-prefix}FormItem {
    display: flex;
    flex: 1;
  }
}

.@{table-filter-prefix}Buttons {
  display: flex;
  align-items: flex-start;
}
.@{table-filter-prefix}Button {
  display: flex;
  align-items: center;
  margin-left: 15px;
  cursor: pointer;

  &:first-child {
    margin-left: 0;
  }

  &Text {
    color: #565a66;
    font-weight: 400;
    font-size: 14px;
    line-height: 30px;
  }

  &Icon {
    width: 12px;
    height: 12px;
    margin-left: 3px;
    transform: rotate(0);

    &.top {
      transform: rotate(180deg);
    }
  }
}

.@{table-filter-prefix}Tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 80px;
}

.@{table-filter-prefix}ToolsItem {
  margin-left: 14px;
}
